/*
 * @Author: nainaiyi s15037075861@163.com
 * @Date: 2022-09-05 11:42:49
 * @LastEditors: nainaiyi s15037075861@163.com
 * @LastEditTime: 2022-09-05 11:53:05
 * @FilePath: \shopapp\src\store\home\homeAction.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { homeListType } from "./homeReducer"

export const fetch_data = "fetch_data"

export interface fetchData {
    type: typeof fetch_data,
    payload: homeListType[]
}

export const fetchDataAction = (payload: homeListType[]): fetchData => {
    return {
        type: fetch_data,
        payload
    }
}
export type homeAllAction = fetchData